# Contributor: Bjoern Schilberg <bjoern@intevation.de>
# Maintainer: Bjoern Schilberg <bjoern@intevation.de>
pkgname=freexl
pkgver=1.0.6
pkgrel=0
pkgdesc="Library to extract valid data from within an Excel (.xls) spreadsheet"
url="https://www.gaia-gis.it/fossil/freexl/index"
arch="all"
license="MPL-1.1 GPL-2.0-only LGPL-2.1-only"
subpackages="$pkgname-dev"
source="http://www.gaia-gis.it/gaia-sins/freexl-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--host=$CHOST \
		--build=$CBUILD \
		--prefix /usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/share/
}
sha512sums="efbbe261e57d5c05167ad8e1d5a5b348a7e702c0a4030b18dd2a8c60a38332caccbb073ff604bdf5bafac827310b41c7b79f9fa519ea512d6de2eafd9c1f71f6  freexl-1.0.6.tar.gz"
